function showScoreImprovement() {
    // 隐藏主内容区
    document.querySelector('.main-content').style.display = 'none';
    
    // 创建动态内容容器
    const dynamicContainer = document.createElement('div');
    dynamicContainer.id = 'score-improvement-container';
    dynamicContainer.style.width = '100%';
    dynamicContainer.style.height = 'calc(100% - 80px)'; // 减去状态栏高度
    dynamicContainer.style.position = 'relative';
    
    // 创建返回按钮
    const backButton = document.createElement('button');
    backButton.innerText = '返回';
    backButton.style.position = 'absolute';
    backButton.style.top = '10px';
    backButton.style.right = '10px';
    backButton.style.zIndex = '1000';
    backButton.style.background = '#00b4d8';
    backButton.style.color = 'white';
    backButton.style.border = 'none';
    backButton.style.padding = '5px 10px';
    backButton.style.borderRadius = '5px';
    backButton.style.cursor = 'pointer';
    backButton.onclick = function() {
        dynamicContainer.remove();
        document.querySelector('.main-content').style.display = 'flex';
    };
    
    dynamicContainer.appendChild(backButton);
    
    // 创建图表容器
    const chartDiv = document.createElement('div');
    chartDiv.style.width = '100%';
    chartDiv.style.height = '100%';
    chartDiv.id = 'improvement-chart';
    dynamicContainer.appendChild(chartDiv);
    
    // 将动态容器插入到container中
    document.querySelector('.container').appendChild(dynamicContainer);
    
    // 渲染图表
    renderImprovementChart();
}

function renderImprovementChart() {
    const categories = [
        '功能测试', '开关机操作', '分系统原理与实践', '整机联系', '典型参数测量',
        '雷达系统检查调整', '雷达终端操作', '架设与撤收', '维护组织',
        '故障检修', '状态评估', '阵地优化', '全功能运用',
        '雷达机动部署', '区域协同抗扰', '临战应急处置', '组网协同探测'
    ];
        
    // 生成基础分数(65-90)和增补分数(总和不超过100)
    const baseScores = [72, 85, 68, 90, 78, 82, 75, 88, 69, 84, 77, 81, 70, 86, 73, 80, 76];
    const improvementScores = [18, 12, 22, 8, 16, 14, 15, 9, 21, 13, 17, 15, 20, 10, 17, 14, 13];
    
    const option = {
        tooltip: {
            trigger: 'axis',
            axisPointer: { type: 'shadow' },
            formatter: function(params) {
                let result = params[0].name + '<br/>';
                params.forEach(param => {
                    result += param.seriesName + ': ' + param.value + '分<br/>';
                });
                const total = baseScores[params[0].dataIndex] + improvementScores[params[0].dataIndex];
                result += '总分: ' + total + '分';
                return result;
            }
        },
        legend: {
            data: ['基础分', '增补分'],
            textStyle: { color: '#fff', fontSize:20},
        },
        grid: {
            left: '10%',
            right: '15%', // 为长标签留出空间
            bottom: '3%',
            top: '10%',
            containLabel: true
        },
        yAxis: {
            type: 'category',
            data: categories,
            axisLabel: {
                color: '#fff',
                fontSize: 20
            }
        },
        xAxis: {
            type: 'value',
            max: 100,
            axisLabel: { 
                color: '#fff',
                formatter: '{value} 分',
                fontSize: 20
            }
        },
        series: [
            {
                name: '基础分',
                type: 'bar',
                stack: 'total',
                label: {
                    show: true,
                    position: 'insideLeft',
                    formatter: '{c}分',
                    fontSize: 20,
                },
                data: baseScores,
                itemStyle: {
                    color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
                        { offset: 0, color: '#00b4d8' },
                        { offset: 1, color: '#0077b6' }
                    ])
                }
            },
            {
                name: '增补分',
                type: 'bar',
                stack: 'total',
                label: {
                    show: true,
                    position: 'insideRight',
                    formatter: '{c}分',
                    fontSize: 20
                },
                data: improvementScores,
                itemStyle: {
                    color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
                        { offset: 0, color: '#32CD32' },
                        { offset: 1, color: '#228B22' }
                    ])
                }
            }
        ]
    };
    
    const chart = echarts.init(document.getElementById('improvement-chart'));
    chart.setOption(option);
    
    // 窗口自适应
    window.addEventListener('resize', () => chart.resize());
}